/**
 * Copyright 2015 lerry
 * 
 * All right reserved.
 * 
 * Apr 1, 2015
 */
package com.bac.bacplatform;

import java.math.BigDecimal;
import java.math.BigInteger;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.TextView;

import com.bac.utils.Storage;

/**
 * @author lerry
 *
 */
public class PayResultActivityone extends BaseActivity {
	
	private TextView mTextView1, mTextView2;

	private Intent mIntent;
	
	private String  mTotal, mActual;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.pay_result_one);
		
		mIntent = getIntent();
		mTotal = mIntent.getStringExtra("total");
		mActual = mIntent.getStringExtra("actual");
		Log.i(getClass().getName() + "-----------", "param:[" +  " total: " + mTotal + ", actual:"+ mActual + "]");
		
	}

	@Override
	public void init() {

		mTextView1 = (TextView)findViewById(R.id.textView2);
		mTextView2 = (TextView)findViewById(R.id.textView4);
		
		String info1 = String.format(getString(R.string.recharge_result_01), mActual);
		String info2 = String.format(getString(R.string.recharge_result_02), mTotal);
		
		mTextView1.setText(info1);
		mTextView2.setText(info2);
		
		
		findViewById(R.id.bt_ok).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				// 回主页面
				Intent intent = new Intent(PayResultActivityone.this,
						MainActivity.class);
				intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
				startActivity(intent);
			}
		});
		
	}

}
